{% extends "layouts/bbs.html" %}
{% load navtag %}
{% block nav %}
  {% nav "cooperate" %}
  {{ block.super }}
{% endblock %}
{% block content %}
    <style>
    .nav>li>a{padding: 5px 15px !important;}
</style>
  <div class="col-md-8">
    <ul class="nav customtab2 nav-tabs">
      <li class="">
        <a href="">最新</a>
      </li>
      <li class="active">
        <a href="">热点</a>
      </li>
      <li style="float: right;">
        <a href="/bbs/new" style="background: #4CAF50;color: #FFFFFF;">发帖</a>
      </li>
    </ul>
    <div class="comment-center">
      {% for bbs in bbs_list %}
        <a href="/bbs/show/{{ bbs.id }}" target="_blank" class="a_comment">
          <div class="comment-body">
            <div class="mail-contnet">
              <span class="mail-desc">{{ bbs.title | safe }}</span>
              <span class="label label-rouded label-success">{{ bbs.user.username }}</span>
              <span class="label label-rouded label-info">{{ bbs.type }}</span>
              <span class="time pull-right">{{ bbs.create_time }}</span>
            </div>
          </div>
        </a>
      {% endfor %}
    </div>
    {% include "shared/paginator.html" %}
  </div>
  <div class="col-md-4">
    <div class="col-md-12">
      <div class="pane-module">
        <div class="module-head">职场故事</div>
        <div class="col-md-12">
          以铜为镜可以正衣冠，以古为镜可以见兴衰。
          <br>讲述你的职场故事，
        </div>
      </div>
    </div>
  </div>
{% endblock %}